{% if mechs %}
    <div  class="content">
        <h2>Roster</h2>
        <form action="/" method="post">
            <input type="hidden" name = "d" value="{{ mech.dropid }}" />
            <input type="hidden" name="p" value = "{{ mech.player }}" />
            <input type="hidden" name="m" value = "{{ mech.mechtype }}" />
            <input type="hidden" name="l" value="{{ mech.loadout }}" />

            <table id="roster">
                <thead>
                    <tr>
                        <th class="mechlistcol1"></th>
                        <th class="mechlistcol2">Spieler</th>
                        <th class="mechlistcol3">Mech</th>
                        <th class="mechlistcol4">Beschreibung ( Rolle, Bewaffnung )</th>
                    </tr>
                </thead>
                {% if mech.player == starter %}
                <tfoot><tr><td colspan=4>
                    <select name="a" size="1" class="input">
                        <option value="" selected>Aktion w&auml;hlen... </option>
                        <option value="a">Zur Alpha-Lanze versetzen</option>
                        <option value="b">Zur Bravo-Lanze versetzen</option>
                        <option value="c">Zur Charlie-Lanze versetzen</option>
                        <option value="d">Zur Delta-Lanze versetzen</option>
                        <option value="r">Zur Drop-Reserve versetzen</option>
                        <option value="x">Aus Drop entfernen</option>
                        <option value="l">Droplead zuweisen</option>
                    </select>
                    <input type="submit" class="button" value="Ausf&uuml;hren" />
                </td><tr></tfoot>
                {% endif %}
                <tbody id="mechlist">
                {% include "mechlist.html" %}
                </tbody>
            </table>
            <br/>
        </form>
    
    </div>
{% endif %}

